Integrand size = 23, antiderivative size = 77 \[ \int \frac {1}{\cos ^{\frac {5}{2}}(c+d x) (a+b \sec (c+d x))} \, dx=-\frac {2 E\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{b d}-\frac {2 a \operatorname {EllipticPi}\left (\frac {2 a}{a+b},\frac {1}{2} (c+d x),2\right )}{b (a+b) d}+\frac {2 \sin (c+d x)}{b d \sqrt {\cos (c+d x)}} \]
-2*(cos(1/2*d*x+1/2*c)^2)^(1/2)/cos(1/2*d*x+1/2*c)*EllipticE(sin(1/2*d*x+1 /2*c),2^(1/2))/b/d-2*a*(cos(1/2*d*x+1/2*c)^2)^(1/2)/cos(1/2*d*x+1/2*c)*Ell ipticPi(sin(1/2*d*x+1/2*c),2*a/(a+b),2^(1/2))/b/(a+b)/d+2*sin(d*x+c)/b/d/c os(d*x+c)^(1/2)
Leaf count is larger than twice the leaf count of optimal. \(195\) vs. \(2(77)=154\).
Time = 3.14 (sec) , antiderivative size = 195, normalized size of antiderivative = 2.53 \[ \int \frac {1}{\cos ^{\frac {5}{2}}(c+d x) (a+b \sec (c+d x))} \, dx=-\frac {\frac {6 a \operatorname {EllipticPi}\left (\frac {2 a}{a+b},\frac {1}{2} (c+d x),2\right )}{a+b}+\frac {2 b \left (2 \operatorname {EllipticF}\left (\frac {1}{2} (c+d x),2\right )-\frac {2 b \operatorname {EllipticPi}\left (\frac {2 a}{a+b},\frac {1}{2} (c+d x),2\right )}{a+b}\right )}{a}-\frac {4 \sin (c+d x)}{\sqrt {\cos (c+d x)}}+\frac {2 \left (-2 a b E\left (\left .\arcsin \left (\sqrt {\cos (c+d x)}\right )\right |-1\right )+2 b (a+b) \operatorname {EllipticF}\left (\arcsin \left (\sqrt {\cos (c+d x)}\right ),-1\right )+\left (a^2-2 b^2\right ) \operatorname {EllipticPi}\left (-\frac {a}{b},\arcsin \left (\sqrt {\cos (c+d x)}\right ),-1\right )\right ) \sin (c+d x)}{a b \sqrt {\sin ^2(c+d x)}}}{2 b d} \]
-1/2*((6*a*EllipticPi[(2*a)/(a + b), (c + d*x)/2, 2])/(a + b) + (2*b*(2*El lipticF[(c + d*x)/2, 2] - (2*b*EllipticPi[(2*a)/(a + b), (c + d*x)/2, 2])/ (a + b)))/a - (4*Sin[c + d*x])/Sqrt[Cos[c + d*x]] + (2*(-2*a*b*EllipticE[A rcSin[Sqrt[Cos[c + d*x]]], -1] + 2*b*(a + b)*EllipticF[ArcSin[Sqrt[Cos[c + d*x]]], -1] + (a^2 - 2*b^2)*EllipticPi[-(a/b), ArcSin[Sqrt[Cos[c + d*x]]] , -1])*Sin[c + d*x])/(a*b*Sqrt[Sin[c + d*x]^2]))/(b*d)
Time = 0.92 (sec) , antiderivative size = 137, normalized size of antiderivative = 1.78, number of steps used = 13, number of rules used = 13, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.565, Rules used = {3042, 4752, 3042, 4337, 3042, 4255, 3042, 4258, 3042, 3119, 4336, 3042, 3284}
Below are the steps used by Rubi to obtain the solution. The rule number used for the transformation is given above next to the arrow. The rules definitions used are listed below.
\(\displaystyle \int \frac {1}{\cos ^{\frac {5}{2}}(c+d x) (a+b \sec (c+d x))} \, dx\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \int \frac {1}{\sin \left (c+d x+\frac {\pi }{2}\right )^{5/2} \left (a+b \csc \left (c+d x+\frac {\pi }{2}\right )\right )}dx\) |
\(\Big \downarrow \) 4752 |
\(\displaystyle \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} \int \frac {\sec ^{\frac {5}{2}}(c+d x)}{a+b \sec (c+d x)}dx\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} \int \frac {\csc \left (c+d x+\frac {\pi }{2}\right )^{5/2}}{a+b \csc \left (c+d x+\frac {\pi }{2}\right )}dx\) |
\(\Big \downarrow \) 4337 |
\(\displaystyle \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} \left (\frac {\int \sec ^{\frac {3}{2}}(c+d x)dx}{b}-\frac {a \int \frac {\sec ^{\frac {3}{2}}(c+d x)}{a+b \sec (c+d x)}dx}{b}\right )\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} \left (\frac {\int \csc \left (c+d x+\frac {\pi }{2}\right )^{3/2}dx}{b}-\frac {a \int \frac {\csc \left (c+d x+\frac {\pi }{2}\right )^{3/2}}{a+b \csc \left (c+d x+\frac {\pi }{2}\right )}dx}{b}\right )\) |
\(\Big \downarrow \) 4255 |
\(\displaystyle \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} \left (\frac {\frac {2 \sin (c+d x) \sqrt {\sec (c+d x)}}{d}-\int \frac {1}{\sqrt {\sec (c+d x)}}dx}{b}-\frac {a \int \frac {\csc \left (c+d x+\frac {\pi }{2}\right )^{3/2}}{a+b \csc \left (c+d x+\frac {\pi }{2}\right )}dx}{b}\right )\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} \left (\frac {\frac {2 \sin (c+d x) \sqrt {\sec (c+d x)}}{d}-\int \frac {1}{\sqrt {\csc \left (c+d x+\frac {\pi }{2}\right )}}dx}{b}-\frac {a \int \frac {\csc \left (c+d x+\frac {\pi }{2}\right )^{3/2}}{a+b \csc \left (c+d x+\frac {\pi }{2}\right )}dx}{b}\right )\) |
\(\Big \downarrow \) 4258 |
\(\displaystyle \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} \left (\frac {\frac {2 \sin (c+d x) \sqrt {\sec (c+d x)}}{d}-\sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} \int \sqrt {\cos (c+d x)}dx}{b}-\frac {a \int \frac {\csc \left (c+d x+\frac {\pi }{2}\right )^{3/2}}{a+b \csc \left (c+d x+\frac {\pi }{2}\right )}dx}{b}\right )\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} \left (\frac {\frac {2 \sin (c+d x) \sqrt {\sec (c+d x)}}{d}-\sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} \int \sqrt {\sin \left (c+d x+\frac {\pi }{2}\right )}dx}{b}-\frac {a \int \frac {\csc \left (c+d x+\frac {\pi }{2}\right )^{3/2}}{a+b \csc \left (c+d x+\frac {\pi }{2}\right )}dx}{b}\right )\) |
\(\Big \downarrow \) 3119 |
\(\displaystyle \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} \left (\frac {\frac {2 \sin (c+d x) \sqrt {\sec (c+d x)}}{d}-\frac {2 \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} E\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{d}}{b}-\frac {a \int \frac {\csc \left (c+d x+\frac {\pi }{2}\right )^{3/2}}{a+b \csc \left (c+d x+\frac {\pi }{2}\right )}dx}{b}\right )\) |
\(\Big \downarrow \) 4336 |
\(\displaystyle \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} \left (\frac {\frac {2 \sin (c+d x) \sqrt {\sec (c+d x)}}{d}-\frac {2 \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} E\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{d}}{b}-\frac {a \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} \int \frac {1}{\sqrt {\cos (c+d x)} (b+a \cos (c+d x))}dx}{b}\right )\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} \left (\frac {\frac {2 \sin (c+d x) \sqrt {\sec (c+d x)}}{d}-\frac {2 \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} E\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{d}}{b}-\frac {a \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} \int \frac {1}{\sqrt {\sin \left (c+d x+\frac {\pi }{2}\right )} \left (b+a \sin \left (c+d x+\frac {\pi }{2}\right )\right )}dx}{b}\right )\) |
\(\Big \downarrow \) 3284 |
\(\displaystyle \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} \left (\frac {\frac {2 \sin (c+d x) \sqrt {\sec (c+d x)}}{d}-\frac {2 \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} E\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{d}}{b}-\frac {2 a \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} \operatorname {EllipticPi}\left (\frac {2 a}{a+b},\frac {1}{2} (c+d x),2\right )}{b d (a+b)}\right )\) |
Sqrt[Cos[c + d*x]]*Sqrt[Sec[c + d*x]]*((-2*a*Sqrt[Cos[c + d*x]]*EllipticPi [(2*a)/(a + b), (c + d*x)/2, 2]*Sqrt[Sec[c + d*x]])/(b*(a + b)*d) + ((-2*S qrt[Cos[c + d*x]]*EllipticE[(c + d*x)/2, 2]*Sqrt[Sec[c + d*x]])/d + (2*Sqr t[Sec[c + d*x]]*Sin[c + d*x])/d)/b)
3.9.22.3.1 Defintions of rubi rules used
Int[Sqrt[sin[(c_.) + (d_.)*(x_)]], x_Symbol] :> Simp[(2/d)*EllipticE[(1/2)* (c - Pi/2 + d*x), 2], x] /; FreeQ[{c, d}, x]
Int[1/(((a_.) + (b_.)*sin[(e_.) + (f_.)*(x_)])*Sqrt[(c_.) + (d_.)*sin[(e_.) + (f_.)*(x_)]]), x_Symbol] :> Simp[(2/(f*(a + b)*Sqrt[c + d]))*EllipticPi[ 2*(b/(a + b)), (1/2)*(e - Pi/2 + f*x), 2*(d/(c + d))], x] /; FreeQ[{a, b, c , d, e, f}, x] && NeQ[b*c - a*d, 0] && NeQ[a^2 - b^2, 0] && NeQ[c^2 - d^2, 0] && GtQ[c + d, 0]
Int[(csc[(c_.) + (d_.)*(x_)]*(b_.))^(n_), x_Symbol] :> Simp[(-b)*Cos[c + d* x]*((b*Csc[c + d*x])^(n - 1)/(d*(n - 1))), x] + Simp[b^2*((n - 2)/(n - 1)) Int[(b*Csc[c + d*x])^(n - 2), x], x] /; FreeQ[{b, c, d}, x] && GtQ[n, 1] && IntegerQ[2*n]
Int[(csc[(c_.) + (d_.)*(x_)]*(b_.))^(n_), x_Symbol] :> Simp[(b*Csc[c + d*x] )^n*Sin[c + d*x]^n Int[1/Sin[c + d*x]^n, x], x] /; FreeQ[{b, c, d}, x] && EqQ[n^2, 1/4]
Int[(csc[(e_.) + (f_.)*(x_)]*(d_.))^(3/2)/(csc[(e_.) + (f_.)*(x_)]*(b_.) + (a_)), x_Symbol] :> Simp[d*Sqrt[d*Sin[e + f*x]]*Sqrt[d*Csc[e + f*x]] Int[ 1/(Sqrt[d*Sin[e + f*x]]*(b + a*Sin[e + f*x])), x], x] /; FreeQ[{a, b, d, e, f}, x] && NeQ[a^2 - b^2, 0]
Int[(csc[(e_.) + (f_.)*(x_)]*(d_.))^(5/2)/(csc[(e_.) + (f_.)*(x_)]*(b_.) + (a_)), x_Symbol] :> Simp[d/b Int[(d*Csc[e + f*x])^(3/2), x], x] - Simp[a* (d/b) Int[(d*Csc[e + f*x])^(3/2)/(a + b*Csc[e + f*x]), x], x] /; FreeQ[{a , b, d, e, f}, x] && NeQ[a^2 - b^2, 0]
Int[(u_)*((c_.)*sin[(a_.) + (b_.)*(x_)])^(m_.), x_Symbol] :> Simp[(c*Csc[a + b*x])^m*(c*Sin[a + b*x])^m Int[ActivateTrig[u]/(c*Csc[a + b*x])^m, x], x] /; FreeQ[{a, b, c, m}, x] && !IntegerQ[m] && KnownSecantIntegrandQ[u, x ]
Leaf count of result is larger than twice the leaf count of optimal. \(352\) vs. \(2(127)=254\).
Time = 6.53 (sec) , antiderivative size = 353, normalized size of antiderivative = 4.58
method | result | size |
default | \(-\frac {2 \left (-2 \sqrt {-2 \sin \left (\frac {d x}{2}+\frac {c}{2}\right )^{4}+\sin \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}}\, \left (a -b \right ) \cos \left (\frac {d x}{2}+\frac {c}{2}\right ) \sin \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}+a \sqrt {\frac {1}{2}-\frac {\cos \left (d x +c \right )}{2}}\, \sqrt {2 \sin \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}-1}\, \operatorname {EllipticPi}\left (\cos \left (\frac {d x}{2}+\frac {c}{2}\right ), \frac {2 a}{a -b}, \sqrt {2}\right ) \sqrt {-2 \sin \left (\frac {d x}{2}+\frac {c}{2}\right )^{4}+\sin \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}}+\sqrt {-2 \sin \left (\frac {d x}{2}+\frac {c}{2}\right )^{4}+\sin \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}}\, \sqrt {\frac {1}{2}-\frac {\cos \left (d x +c \right )}{2}}\, \sqrt {2 \sin \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}-1}\, \operatorname {EllipticE}\left (\cos \left (\frac {d x}{2}+\frac {c}{2}\right ), \sqrt {2}\right ) a -\sqrt {-2 \sin \left (\frac {d x}{2}+\frac {c}{2}\right )^{4}+\sin \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}}\, \sqrt {\frac {1}{2}-\frac {\cos \left (d x +c \right )}{2}}\, \sqrt {2 \sin \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}-1}\, \operatorname {EllipticE}\left (\cos \left (\frac {d x}{2}+\frac {c}{2}\right ), \sqrt {2}\right ) b \right )}{b \sqrt {-2 \sin \left (\frac {d x}{2}+\frac {c}{2}\right )^{4}+\sin \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}}\, \left (a -b \right ) \sin \left (\frac {d x}{2}+\frac {c}{2}\right ) \sqrt {2 \cos \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}-1}\, d}\) | \(353\) |
-2*(-2*(-2*sin(1/2*d*x+1/2*c)^4+sin(1/2*d*x+1/2*c)^2)^(1/2)*(a-b)*cos(1/2* d*x+1/2*c)*sin(1/2*d*x+1/2*c)^2+a*(sin(1/2*d*x+1/2*c)^2)^(1/2)*(2*sin(1/2* d*x+1/2*c)^2-1)^(1/2)*EllipticPi(cos(1/2*d*x+1/2*c),2*a/(a-b),2^(1/2))*(-2 *sin(1/2*d*x+1/2*c)^4+sin(1/2*d*x+1/2*c)^2)^(1/2)+(-2*sin(1/2*d*x+1/2*c)^4 +sin(1/2*d*x+1/2*c)^2)^(1/2)*(sin(1/2*d*x+1/2*c)^2)^(1/2)*(2*sin(1/2*d*x+1 /2*c)^2-1)^(1/2)*EllipticE(cos(1/2*d*x+1/2*c),2^(1/2))*a-(-2*sin(1/2*d*x+1 /2*c)^4+sin(1/2*d*x+1/2*c)^2)^(1/2)*(sin(1/2*d*x+1/2*c)^2)^(1/2)*(2*sin(1/ 2*d*x+1/2*c)^2-1)^(1/2)*EllipticE(cos(1/2*d*x+1/2*c),2^(1/2))*b)/b/(-2*sin (1/2*d*x+1/2*c)^4+sin(1/2*d*x+1/2*c)^2)^(1/2)/(a-b)/sin(1/2*d*x+1/2*c)/(2* cos(1/2*d*x+1/2*c)^2-1)^(1/2)/d
Timed out. \[ \int \frac {1}{\cos ^{\frac {5}{2}}(c+d x) (a+b \sec (c+d x))} \, dx=\text {Timed out} \]
Timed out. \[ \int \frac {1}{\cos ^{\frac {5}{2}}(c+d x) (a+b \sec (c+d x))} \, dx=\text {Timed out} \]
\[ \int \frac {1}{\cos ^{\frac {5}{2}}(c+d x) (a+b \sec (c+d x))} \, dx=\int { \frac {1}{{\left (b \sec \left (d x + c\right ) + a\right )} \cos \left (d x + c\right )^{\frac {5}{2}}} \,d x } \]
\[ \int \frac {1}{\cos ^{\frac {5}{2}}(c+d x) (a+b \sec (c+d x))} \, dx=\int { \frac {1}{{\left (b \sec \left (d x + c\right ) + a\right )} \cos \left (d x + c\right )^{\frac {5}{2}}} \,d x } \]
Timed out. \[ \int \frac {1}{\cos ^{\frac {5}{2}}(c+d x) (a+b \sec (c+d x))} \, dx=\int \frac {1}{{\cos \left (c+d\,x\right )}^{5/2}\,\left (a+\frac {b}{\cos \left (c+d\,x\right )}\right )} \,d x \]